import pyecharts.options as opts
from pyecharts.charts import Line
line_demo = (
    Line()
    .add_xaxis(['可乐','雪碧','啤酒','橙汁','奶茶'])
    .add_yaxis('商家A',[102,132,105,88,91],symbol_size=15)
    .add_yaxis('商家B',[99,142,85,98,134],symbol_size=15)
    #S设置标题，Y轴标签
    .set_global_opts(
        title_opts=opts.TitleOpts(title='折线图示例'),
        yaxis_opts=opts.AxisOpts(name="销售额（万元）")
    )
)
line_demo.render("d:/html/zxt.html")